from math import sin

x=float(input())

deviation=0.001

def fun(x):
    if x==0:
        return 1
    else:
        return sin(x)/x

def forward(x):
    delta=100
    h=1
    ans=(fun(x + h) - fun(x)) / h

    while delta>=deviation:
        last_ans = ans
        h=h/2
        ans=(fun(x + h) - fun(x)) / h
        delta=abs(ans-last_ans)

    return last_ans

def forback(x):
    delta=100
    h=1
    ans=(fun(x) - fun(x-h)) / h

    while delta>=deviation:
        last_ans=ans
        h=h/2
        ans=(fun(x) - fun(x-h)) / h
        delta=abs(ans-last_ans)

    return last_ans

def mid(x):
    delta=100
    h=1
    ans=(fun(x+h) - fun(x-h)) / (2*h)

    while delta>=deviation:
        last_ans = ans
        h=h/2
        ans=(fun(x+h) - fun(x-h)) / (2*h)
        delta=abs(ans-last_ans)

    return last_ans

print("%.3f"%forward(x),end=" ")
print("%.3f"%forback(x),end=" ")
print("%.3f"%mid(x),end="")

# print()
#
# print("%.9f"%forward(x),end=" ")
# print("%.9f"%forback(x),end=" ")
# print("%.9f"%mid(x),end="")
